<?php
require_once('Zend/View/Helper/Abstract.php');

class Kbs_View_Helper_Date extends Zend_View_Helper_Abstract
{
    public function date($dateString = null)
    {
        $date = new Zend_Date();

        $date->set($dateString, Zend_Date::ISO_8601);
        $result = $date->get(Zend_Date::DATE_FULL);

        /*
        $date = Kbs::initDate();

        if (null !== $dateString and !empty($dateString)) {
            if (false == Zend_Date::isDate($dateString, $inputFormat)) {
                //throw new Zend_Date_Exception($dateString . ' is not a correct date !');
            }

            $date->set($dateString, $inputFormat);
        }

        $result = $date->get($dateFormat);
        */

        return $result;
    }
}
